<!-- inc:header -->
<script type="text/javascript">
function to_link(t)
{
	var turl = base_file + "?"+base_ctrl+"=link&"+base_func+"="+t+"&input_id=uid&input_i=uname&input_d=proname";
	Layer.init(turl,550,400);
}
</script>
<div class="notice"><div class="p">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td><span class="lead">&nbsp;&raquo; <a href="{:site_url('customer')}">客户管理</a> &raquo; 批量导入客户</span></td>
	</tr>
	</table>
</div></div>

<form method="post" action="{:site_url('customer,xsladdaction')}" enctype="multipart/form-data" onsubmit="return to_submit();" >
<div class="table">
	<div class="left"><span class="red">*</span> 经纪人ID：</div>
	<input type="text" name="uid" id="uid" value="" />
</div>
<div class="table">
	<div class="left"><span class="red">*</span> 经纪人姓名：</div>
	<input type="text" name="uname" id="uname" value="" />
    <span class="clue_on">经纪人ID和姓名，请点击下面【经纪人】按钮自动选择，注意，要选择为官方自己的</span>
</div>
	
<div class="table">
	<div class="left">&nbsp;</div>
	<input type="button" class="btn2" value="经纪人" onclick="to_link('user')" />
	<span class="clue_on"></span>
</div>

<div class="table">
	<div class="left"><span class="red">*</span> 表格文件上传(需为CSV格式)：</div>
	<input type="file" name="uinfo" id="uinfo" value="" />
    <span class="clue_on"><a href="/upfiles/add.csv" target="_blank" style="color:blue">下载模板CSV文件</a></span>
</div>

<div class="table">
	<div class="left">&nbsp;</div>
	<input type="submit" class="btn3" id="_phpok_submit" name="article_submit" value=" 提交 ">
</div>
</form>

<script type="text/javascript">
function to_submit()
{
	var uid= getid("uid").value;
	if(!uid)
	{
		alert("经纪人ID不允许为空");
		getid("uid").focus();
		return false;
	}
	var uname= getid("uname").value;
	if(!uname)
	{
		alert("经纪人姓名不允许为空");
		getid("uname").focus();
		return false;
	}
	getid("_phpok_submit").disabled = true;
}
</script>
<!-- inc:footer -->